package com.buer.storage.service;

import com.buer.storage.dto.*;
import com.buer.storage.entity.Dorder;
import com.buer.storage.entity.Stock;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface DestroyService {

    List<Stock> findStock();

    PageInfo<Dorder> selectByAll(Map<String, Object> map);

    int insert(DeStorageDto deStorageDto);

    PageInfo<DestroyDto> findDestroyAll(Map<String,Object> params);

    //根据订单id删除订单信息
    int deleteDestroyById(int destroyId);

    //根据装备表id删除商品信息
    int deleteDestroydetails(int detailsId);

    //查询入库表
    List<DeStorageAllDto> findOutAll(int destroyId);
    //更新商品
    int updateDestroydetails(DeStorageDto deStorageDto);

    int submitAddBuerStock(int destroyId);
}
